package de.baumann.browser.views.dialog;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.TextView;

import de.baumann.browser.R;

public class LoadingDialog extends BaseDialog {

    private TextView mLoadingText;

    public LoadingDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int laoutId() {
        return R.layout.dialog_loading;
    }

    @Override
    protected void initView() {
        mLoadingText = findViewById(R.id.tvLoadingText);
        setCanceledOnTouchOutside(false);
    }

    public void setLoadingText(String text) {
        mLoadingText.setText(text);
    }

    @Override
    protected float getDimAmount() {
        return 0.6f;
    }
}
